const state = {
  account_info: {}, // 用户信息
  vip_status: 0 // 会员状态
}

const Mutation = {
  SET_ACCOUNT_INFO: 'SET_ACCOUNT_INFO'
}
const mutations = {
  // 设置用户信息
  [Mutation.SET_ACCOUNT_INFO](state, data) {
    state.account_info = data
  }
}

const Action = {
  SET_ACCOUNT_INFO: 'SET_ACCOUNT_INFO'
}
const actions = {
  [Action.SET_ACCOUNT_INFO]({ commit }, data) {
    commit(Mutation.SET_ACCOUNT_INFO, data)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
